//
//  HWBookPassTimeModel.m
//  嗨文
//
//  Created by 响当当 on 4/23/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "HWBookPassTimeModel.h"

@implementation HWBookPassTimeModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.createTime = [[NSString stringWithFormat:@"%@",dic[@"createTime"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"createTime"]] :@"";
        self.dueTime = [[NSString stringWithFormat:@"%@",dic[@"dueTime"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"dueTime"]] :@"";
        self.note = IFNULL(dic[@"note"], @"");
        self.surplusNum = [[NSString stringWithFormat:@"%@",dic[@"surplusNum"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"surplusNum"]] :@"";
        self.totalNum = [[NSString stringWithFormat:@"%@",dic[@"totalNum"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"totalNum"]] :@"";
        self.userCouponId = [[NSString stringWithFormat:@"%@",dic[@"userCouponId"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"userCouponId"]] :@"";
        self.validDays = [[NSString stringWithFormat:@"%@",dic[@"validDays"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"validDays"]] :@"";
        
    }
    return self;
}
@end
